package example.entities.stationary
{
	import example.globals.Assets;
	import net.flashpunk.Entity;
	import maskedpixel.ogmo.*;
	import maskedpixel.ogmo.utils.*;
	import net.flashpunk.graphics.Image;
	
	import net.flashpunk.Graphic;
	import net.flashpunk.Mask;
	
	/**
	 * ...
	 * @author MaskedPixel
	 */
	public class Chest extends Entity 
	{
		/**
		 * @inheritDoc
		 */
		public function Chest(x:Number=0, y:Number=0, graphic:Graphic=null, mask:Mask=null) 
		{
			super(x, y, graphic, mask);
			this.graphic = new Image(Assets.CHEST_GFX);
		}
		
		/**
		 * Used to register this class with the Ogmo Project.
		 */
		public static function register():void
		{
			var chest:OgmoObject = new OgmoObject("example.entities.stationary.Chest", "chest", "chest.png", 16, 16);
			chest.registerValue(new OgmoValue(OgmoValue.INTEGER, "coins", "2", 20, 0));
			
			OgmoProject.registerObject(chest);
		}
		
	}

}